package com.neuralnoise.livejournal;

import org.apache.log4j.Logger;

import com.neuralnoise.AbstractCrawler;

public class LiveJournalCrawler extends AbstractCrawler<String> {

	private Logger logger = Logger.getLogger(this.getClass());

	public LiveJournalCrawler(LiveJournalDriver lj) {
		super(lj);
	}
	
	public static void main(String[] args) throws Exception {
		ParseArgs p = new ParseArgs(args);
		LiveJournalProperties properties = p.getProperties();

		LiveJournalDriver lj = new LiveJournalDriver(properties);
		String sid = properties.getStartNode();

		LiveJournalCrawler c = new LiveJournalCrawler(lj);
		c.breadthFirstGraphExploration(sid, properties.getMillis());
	}
}
